package com.feicheng.persistence.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author cailongyang
 * @since 2021-12-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class DepositRecord implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(value = "deposit_id", type = IdType.AUTO)
    private Integer depositId;

    private Integer payId;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss", iso = DateTimeFormat.ISO.DATE_TIME)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime ct;

    private Integer amount;

    /**
     * 押金类型（INS: 押金充值；OUT：押金退还；）
     */
    private String type;

    /**
     * 发生原因
     */
    private String reason;
    
    private Integer storeId;


}
